import $http from 'static/js/http';

export function list (data) {
  return $http.post('goods/goods/list', data);
}

export function search (data) {
  return $http.post('goods/goods/search', data);
}

export function detail(id) {
  return $http.post('goods/goods/detail/' + id);
}

const goods = {
  list,
  search,
  detail
};

export default goods;
